package com.yzh.grainmall.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author yuzhen
 * @create 2021-11-09 16:48
 */
//跟配置文件绑定
@ConfigurationProperties(prefix = "grainmall.thread")
@Component
@Data
public class ThreadPoolConfigProperties {

    private Integer coreSize;
    private Integer maxSize;
    private Integer keepAliveTime;

}
